home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
biz
/
demo
/
FamCon35a_demo.lha
/
Install FamCon 3.5a demo
< prev
next >
Wrap
Text File
|
1996-09-24
|
3KB
|
117 lines
; script for installing FamilyConnections demo
(set @user-level 1)
(welcome "FamilyConnections 3.5 demo")
(set @default_dest "Work:FamCon")
(set @app-name "FamilyConnections 3.5 demo")
(set src_disk "FamCon 3.5 demo:FamCon")
; be sure we can find the target directory.
(if (not (exists @default_dest (noreq)))
(set FamCon_dest
(askdir
(prompt "To where should FamilyConnections be installed?")
(help @askdir-help)
(default "FamCon")
)
)
(set FamCon_dest @default_dest)
)
(set osVersion (getversion) )
(set osVer (/ osVersion 65536))
(set osRev (- osVersion (* osVer 65536) ) )
(if (< osVer 36)
(
(set copy_list ("You are currently running AmigaDOS %ld.%ld." osVer osRev))
(set copy_list (cat copy_list " You must be running AmigaDOS 2.0 or later for"
" Family Connections to operate properly."))
(abort copy_list)
)
)
(if (not (exists src_disk (noreq)))
(set src_disk
(askdir
(prompt "From which disk or drawer should FamilyConnections demo be obtained?")
(help @askdir-help)
(default "")
)
)
)
(if (not (exists src_disk (noreq)))
(abort "The FamilyConnections demo source directory or disk does not seem"
" to exist. Aborting.")
)
(if (exists FamCon_dest (noreq))
(if
(askbool
(prompt "Your current copy of FamilyConnections appears to be located"
" in the drawer named \""
FamCon_dest
"\". Do you want to overwrite the contents of that drawer?"
)
(help "The installer has determined that you may already have a "
"copy of FamilyConnections installed on your system. If this"
" is wrong or you want the update installed elsewhere, select"
" NO as an answer. Otherwise, select YES."
)
(default 1)
)
(set @default_dest FamCon_dest)
(set FamCon_dest ; else user wants in different place
(askdir
(prompt "In which disk or drawer should FamilyConnections be installed?")
(help @askdir-help)
(default "FamCon")
)
)
)
)
(if (not (exists FamCon_dest) )
(abort "The FamilyConnections directory or disk does not seem"
" to exist. Aborting.")
)
(protect (tackon FamCon_dest "FamConView") "+d +w +r")
(working "Copying files")
(copyfiles
(source src_disk)
(all)
(dest FamCon_dest)
)
(working "Deleting obsolete files")
(if (exists (tackon FamCon_dest "print_ctl_end") (noreq))
(delete (tackon FamCon_dest "print_ctl_end"))
)
(if (exists (tackon FamCon_dest "dump_gen") (noreq))
(delete (tackon FamCon_dest "dump_gen"))
)
(if (exists (tackon FamCon_dest "dump_sps") (noreq))
(delete (tackon FamCon_dest "dump_sps"))
)
(if (exists (tackon FamCon_dest "FamCon_GED_in") (noreq))
(delete (tackon FamCon_dest "FamCon_GED_in"))
)
(if (exists (tackon FamCon_dest "FC_grammar.txt") (noreq))
(delete (tackon FamCon_dest "FC_grammar.txt"))
)
(if (exists (tackon FamCon_dest "FC_proj_icon.info") (noreq))
(delete (tackon FamCon_dest "FC_proj_icon.info"))
)
(protect (tackon FamCon_dest "FamConView") "+s +r")
(complete 100)
(exit "3.5 demo installation completed.")